package com.mrtan.mapper;

import com.mrtan.bean.AccountRoleMapping;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
* @author Mr.Tan
* @description 针对表【account_role_mapping(角色账号映射表)】的数据库操作Mapper
* @createDate 2023-12-04 11:12:04
* @Entity com.mrtan.bean.AccountRoleMapping
*/
public interface AccountRoleMappingMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(AccountRoleMapping record);

    int insertSelective(AccountRoleMapping record);

    AccountRoleMapping selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AccountRoleMapping record);

    int updateByPrimaryKey(AccountRoleMapping record);

    List<AccountRoleMapping> selectAll();

    int delByAccountId(Integer accountId);

    void insertBatch(@Param("accountId") Integer accountId, @Param("roleIds") Integer[] roleIds);
}
